package com.huiminpay.merchant.service;

import com.huiminpay.common.cache.domain.BusinessException;

public interface SmsService {
    /**
     * 发送手机验证码
     * @param phone 手机号
     * @return 验证码对应的key
     */
    public String sendSms(String phone) throws BusinessException;
    /**
     * 校验验证码
     * @param verifiyCode
     * @param verifiykey
     */
    void checkSmsCode(String verifiyCode, String verifiykey) throws BusinessException;
}